package com.email.util;
/*
下面是使用Dynatree插件的时候，定义树节点的结构。
children: [
           {
           title: null, // (required) Displayed name of the node (html is allowed here)
           key: null, // May be used with activate(), select(), find(), ...
           isFolder; // Use a folder icon. Also the node is expandable but not selectable.
           isLazy; // Call onLazyRead(), when the node is expanded for the first time to allow for delayed creation of children.
           tooltip: null, // Show this popup text.
           href: null, // Added to the generated <a> tag.
           icon: null, // Use a custom image (filename relative to tree.options.imagePath). 'null' for default icon, 'false' for no icon.
           addClass: null, // Class name added to the node's span tag.
           noLink; // Use <span> instead of <a> tag for this node
           activate; // Initial active status.
           focus; // Initial focused status.
           expand; // Initial expanded status.
           select; // Initial selected status.
           hideCheckbox; // Suppress checkbox display for this node.
           unselectable; // Prevent selection.
           // The following attributes are only valid if passed to some functions:
           children: null // Array of child nodes.
           // NOTE: we can also add custom attributes here.
           // This may then also be used in the onActivate(), onSelect() or onLazyTree() callbacks.
           },
           […]
       ]
*/
public class JsonBean {
    private String title; // (required) Displayed name of the node (html is allowed here)
    private String key; // May be used with activate(), select(), find(), ...
    private boolean isFolder; // Use a folder icon. Also the node is expandable but not selectable.
    private boolean isLazy; // Call onLazyRead(), when the node is expanded for the first time to allow for delayed creation of children.
    private String tooltip; // Show this popup text.
    private String href; // Added to the generated <a> tag.
    private String icon; // Use a custom image (filename relative to tree.options.imagePath). 'null' for default icon, 'false' for no icon.
    private String addClass; // Class name added to the node's span tag.
    private boolean noLink; // Use <span> instead of <a> tag for this node
    private boolean activate; // Initial active status.
    private boolean focus; // Initial focused status.
    private boolean expand; // Initial expanded status.
    private boolean select; // Initial selected status.
    private boolean hideCheckbox; // Suppress checkbox display for this node.
    private boolean unselectable; // Prevent selection.
    private JsonBean[] children; // Array of child nodes.
    
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getKey() {
		return key;
	}
	public void setKey(String key) {
		this.key = key;
	}
	public boolean isFolder() {
		return isFolder;
	}
	public void setFolder(boolean isFolder) {
		this.isFolder = isFolder;
	}
	public boolean isLazy() {
		return isLazy;
	}
	public void setLazy(boolean isLazy) {
		this.isLazy = isLazy;
	}
	public String getTooltip() {
		return tooltip;
	}
	public void setTooltip(String tooltip) {
		this.tooltip = tooltip;
	}
	public String getHref() {
		return href;
	}
	public void setHref(String href) {
		this.href = href;
	}
	public String getIcon() {
		return icon;
	}
	public void setIcon(String icon) {
		this.icon = icon;
	}
	public String getAddClass() {
		return addClass;
	}
	public void setAddClass(String addClass) {
		this.addClass = addClass;
	}
	public boolean isNoLink() {
		return noLink;
	}
	public void setNoLink(boolean noLink) {
		this.noLink = noLink;
	}
	public boolean isActivate() {
		return activate;
	}
	public void setActivate(boolean activate) {
		this.activate = activate;
	}
	public boolean isFocus() {
		return focus;
	}
	public void setFocus(boolean focus) {
		this.focus = focus;
	}
	public boolean isExpand() {
		return expand;
	}
	public void setExpand(boolean expand) {
		this.expand = expand;
	}
	public boolean isSelect() {
		return select;
	}
	public void setSelect(boolean select) {
		this.select = select;
	}
	public boolean isHideCheckbox() {
		return hideCheckbox;
	}
	public void setHideCheckbox(boolean hideCheckbox) {
		this.hideCheckbox = hideCheckbox;
	}
	public boolean isUnselectable() {
		return unselectable;
	}
	public void setUnselectable(boolean unselectable) {
		this.unselectable = unselectable;
	}
	public JsonBean[] getChildren() {
		return children;
	}
	public void setChildren(JsonBean[] children) {
		this.children = children;
	} 
	
	public String toString(){
		return "key: " + this.key + ", title: " ;
	}
}
